cmake_minimum_required(VERSION 2.8)

include_directories(${EASYSQLITE_SRC_DIR})
link_directories(${EASYSQLITE_SRC_DIR})

#set(CONFIGS log.ini)

if(BUILD_SHARED_LIBS)
    add_executable(easysqlite_test easySQLite.cpp)
    target_link_libraries(easysqlite_test easysqlite UnitTest++)
    install(TARGETS easysqlite_test DESTINATION bin)
endif()

if(BUILD_STATIC_LIBS)
    add_executable(easysqlite_test_static easySQLite.cpp)
    add_definitions(-DEASYSQLITE_STATICLIB)
    target_link_libraries(easysqlite_test_static easysqlite_static UnitTest++_static)
    #set_target_properties(easysqlite_test_static PROPERTIES OUTPUT_NAME "easysqlite_test_static")
    install(TARGETS easysqlite_test_static DESTINATION bin)
endif()

#install(FILES ${CONFIGS} DESTINATION bin)
